package cn.gov.pbc.gd.credit.provider.api.work.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liu.jbase.service.db.impl.DBBaseServiceImpl;

import cn.gov.pbc.gd.credit.api.work.IWorkApi;
import cn.gov.pbc.gd.credit.provider.dao.work.IWorkDao;
import cn.gov.pbc.gd.credit.vo.work.ResWorkVo;
import cn.gov.pbc.gd.credit.vo.work.WorkVo;

@Service
public class WorkApiImpl extends DBBaseServiceImpl<ResWorkVo, WorkVo, IWorkDao> implements IWorkApi{

	@Autowired
	private IWorkDao iWorkDao;
	
	@Override
	public int update(WorkVo record) {
		
		return super.update(record);
	}

	@Override
	public int insertList(List<WorkVo> listWorkVo) {
		
		int flag = iWorkDao.insertList(listWorkVo);
		
		return flag;
	}
}
